package com.example.streams;

import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class Student {

    /**
     * id 主键
     */
    private Integer Id;

    /**
     * 姓名
     */
    private String name;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 年级
     */
    private String grade;

    /**
     * 班级
     */
    private String className;

    public Student(Integer id, String name, Integer age, String grade, String className) {
        Id = id;
        this.name = name;
        this.age = age;
        this.grade = grade;
        this.className = className;
    }
}
